<ul class="breadcrumb">
    <li>
        <a href="/">首页</a> <span class="divider">/</span>
    </li>
    <li>
        <a href="#">信息查询</a> <span class="divider">/</span>
    </li>
    <li class="active">
        操作日志
    </li>
</ul>

<form class="form-search" action="/_system/op-log" method="get">
    <select class="span2" name="city_id">
        <option value="0">全国</option>
        <?=Helper_HTML::getSelectMenu($cityList, $params['city_id'])?>
    </select>
    <select class="span2" name="type">
        <option value="0">操作类型</option>
        <?=Helper_HTML::getSelectMenu($opTypes, $params['type'])?>
    </select>
    <input type="text" placeholder="搜索操作人名称" name="admin_name" class="span2" value="<?=$params['gift_name']?>" />
    <input type="text" placeholder="开始时间" name="start_date" class="input-small" value="<?=$params['start_date']?>" onclick="showcalendar(event, this)" onfocus="showcalendar(event, this);if(this.value=='0000-00-00')this.value=''" />
    <input type="text" placeholder="结束时间" name="end_date" class="input-small" value="<?=$params['end_date']?>" onclick="showcalendar(event, this)" onfocus="showcalendar(event, this);if(this.value=='0000-00-00')this.value=''" />
    <button class="btn btn-primary" type="submit">查询</button>
</form>

<table class="table table-bordered" style="margin-bottom: 0;">
<thead>
    <tr>
        <th>操作人</th>
        <th>角色</th>
        <th>城市</th>
        <th>操作类型</th>
        <th>操作内容</th>
        <th>操作时间</th>
    </tr>
</thead>
<tbody>
<? if ($list): ?>
<? foreach ($list as $value): ?>
    <tr>
        <td><?=$value['admin_name']?></td>
        <td><?=$value['role_name']?></td>
        <td><?=$cityList[$value['city_id']]?></td>
        <td><?=$opTypes[$value['type']]?></td>
        <td><?=$value['content']?></td>
        <td><?=date('Y-m-d H:i', $value['create_time'])?></td>
    </tr>
<? endforeach; ?>
<? else: ?>
    <tr><td colspan="20">没有符合条件的记录</td></tr>
<? endif; ?>
</tbody>
</table>

<? if ($multipage): ?>
    <div class="pull-right"><?=$multipage?></div>
<? endif; ?>

<script type="text/javascript" src="/js/calendar/calendar.js"></script>